﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using YunCMS.Core;
using YunCMS.Common;
using YunCMS.Model;
using YunCMS.Core.Template;

namespace YunCMS.Web.Site
{
    public partial class ArticalList : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                var th = new TemplateHelper(Server.MapPath("~/templates/default/"));
                th.Put("models", new ArticalTemplate());
                string str = th.BuildString("articallist.htm");
                Response.Write(str.Replace("\"images/", "\"/templates/default/images/").Replace("(images/", "(/templates/default/images/"));
                Response.End();
            }
        }
    }
}